import request from '@/utils/request'

export const getAreaList = (params) => {
  return request.get('/system/ar/areaList/' + params)
}
export const getActionList = (params) => {
  return request.get('/system/ar/list', { params })
}
export const createNum = (params) => {
  return request.get('/system/ar/id/' + params)
}
export const getAccidentList = () => {
  return request.get('/system/ar/accident/list')
}
export const addDevice = (params) => {
  return request.post('/system/ar/add', { ...params })
}
export const getCameraInfo = (params) => {
  return request.get('/system/ar/info', { params })
}
export const deleteCamera = (params) => {
  return request.get('/system/ar/delete', { params })
}
export const updateDevice = (params) => {
  return request.post('/system/ar/update', { ...params })
}

// 区域管理
export const getCameraAreaList = (params) => {
  return request.get('/system/cameraArea/list', { params })
}
export const addArea = (params) => {
  return request.post('/system/cameraArea/add', {}, { params })
}
export const updateArea = (params) => {
  return request.post('/system/cameraArea/update', {}, { params })
}
export const deleteArea = (params) => {
  return request.post('/system/cameraArea/delete', {}, { params })
}
